package com.infore.remoteControl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.infore.remoteControl.select.dto.QueryParamDto;
import com.infore.remoteControl.service.InstructionsDataService;
import com.infore.remoteControl.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 指令数据控制器
 * 
 * @author Cold
 *
 */
@Api(value = "指令数据管理接口", tags = { "指令数据管理接口" })
@RestController
@RequestMapping("/instructionsData")
public class InstructionsDataController {

	@Autowired
	private InstructionsDataService instructionsDataService;

	@ApiOperation(value = "查询指令数据通用接口")
	@ResponseBody
	@RequestMapping(value = "/query", method = RequestMethod.POST)
	public ResultEntity query(@RequestBody(required = false) QueryParamDto queryParamDto) {
		return instructionsDataService.query(queryParamDto);
	}

}
